Preheat oven to 350ยบ F. Melt butter in a 12-inch skillet. Swirl butter in skillet to well coat bottom and sides. Add sliced tomatoes, onions, garlic. Top with grated cheese.
Crack each egg and add to skillet on top of other ingredients, evenly distributing in skillet and taking care not to burst yolk.
Bake 18-20 minutes. Remove from oven and run a silicon spatula around the edge of the skillet to help release baked eggs from skillet, if needed. Slide onto a serving platter for serving. Top with chopped cilantro or parsley. Season with salt and pepper, to taste.